﻿namespace AnyOffice.Model
{
    using System;

    public class AttendLeaveData
    {
        protected int _allow;
        protected object _destroyTime;
        protected string _leaderId = string.Empty;
        protected DateTime _leaveDate1 = DateTime.Now;
        protected DateTime _leaveDate2;
        protected int _leaveId = -1;
        protected object _leaveType;
        protected object _reason;
        protected int _status = 1;
        protected string _userId = string.Empty;

        public int Allow
        {
            get
            {
                return this._allow;
            }
            set
            {
                this._allow = value;
            }
        }

        public DateTime DestroyTime
        {
            get
            {
                return (DateTime) this._destroyTime;
            }
            set
            {
                this._destroyTime = value;
            }
        }

        public bool DestroyTimeIsNull
        {
            get
            {
                return (this._destroyTime == null);
            }
            set
            {
                if (value)
                {
                    this._destroyTime = null;
                }
            }
        }

        public string LeaderId
        {
            get
            {
                return this._leaderId;
            }
            set
            {
                this._leaderId = value;
            }
        }

        public DateTime LeaveDate1
        {
            get
            {
                return this._leaveDate1;
            }
            set
            {
                this._leaveDate1 = value;
            }
        }

        public DateTime LeaveDate2
        {
            get
            {
                return this._leaveDate2;
            }
            set
            {
                this._leaveDate2 = value;
            }
        }

        public int LeaveId
        {
            get
            {
                return this._leaveId;
            }
            set
            {
                this._leaveId = value;
            }
        }

        public string LeaveType
        {
            get
            {
                return (string) this._leaveType;
            }
            set
            {
                this._leaveType = value;
            }
        }

        public bool LeaveTypeIsNull
        {
            get
            {
                return (this._leaveType == null);
            }
            set
            {
                if (value)
                {
                    this._leaveType = null;
                }
            }
        }

        public string Reason
        {
            get
            {
                return (string) this._reason;
            }
            set
            {
                this._reason = value;
            }
        }

        public bool ReasonIsNull
        {
            get
            {
                return (this._reason == null);
            }
            set
            {
                if (value)
                {
                    this._reason = null;
                }
            }
        }

        public int Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

